/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.ibrae.excelparser1.mainlogics;

import ru.ibrae.cr.orm.AbstractEntity;

/**
 *
 * @author pasha
 */
public class CheckResult<T extends AbstractEntity> {
    //~ Instance fields --------------------------------------------------------

    private final T entity[];
    private final Boolean loaded;
    private final String message;

    //~ Constructors -----------------------------------------------------------
    public CheckResult(Boolean result, String message, T... entity) {
        this.entity = entity;
        this.loaded = result;
        this.message = message;
    }

    //~ Methods ----------------------------------------------------------------
    public T[] getEntity() {
        return entity;
    }

    public String getMessage() {
        return message;
    }

    public Boolean isLoaded() {
        return loaded;
    }
}
